/*
 Navicat Premium Data Transfer

 Source Server         : localhost mysql
 Source Server Type    : MySQL
 Source Server Version : 80033 (8.0.33)
 Source Host           : localhost:3306
 Source Schema         : blogfile_v1

 Target Server Type    : MySQL
 Target Server Version : 80033 (8.0.33)
 File Encoding         : 65001

 Date: 25/07/2023 11:00:50
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for file
-- ----------------------------
DROP TABLE IF EXISTS `file`;
CREATE TABLE `file` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '文件系统名',
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '文件原名',
  `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '文件后缀',
  `size` float(11,2) NOT NULL COMMENT '文件大小',
  `status` tinyint DEFAULT '1' COMMENT '文件状态',
  `userId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '上传用户',
  `createAt` datetime NOT NULL,
  `updateAt` datetime NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=358 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of file
-- ----------------------------
BEGIN;
INSERT INTO `file` (`id`, `name`, `title`, `url`, `type`, `size`, `status`, `userId`, `createAt`, `updateAt`) VALUES (353, '1690249349796.jpeg', 'WechatIMG500.jpeg', '/upload/2023-07-25/1690249349796.jpeg', 'jpeg', 0.03, 1, NULL, '2023-07-25 09:42:29', '2023-07-25 09:42:29');
INSERT INTO `file` (`id`, `name`, `title`, `url`, `type`, `size`, `status`, `userId`, `createAt`, `updateAt`) VALUES (354, '1690249364579.md', 'dd.md', '/upload/2023-07-25/1690249364579.md', 'md', 0.00, 1, NULL, '2023-07-25 09:42:44', '2023-07-25 09:42:44');
INSERT INTO `file` (`id`, `name`, `title`, `url`, `type`, `size`, `status`, `userId`, `createAt`, `updateAt`) VALUES (355, '1690249388959.md', 'e .md', '/upload/2023-07-25/1690249388959.md', 'md', 0.00, 1, NULL, '2023-07-25 09:43:08', '2023-07-25 09:43:08');
INSERT INTO `file` (`id`, `name`, `title`, `url`, `type`, `size`, `status`, `userId`, `createAt`, `updateAt`) VALUES (356, '1690249417347.jpg', '1688736438031.jpg', '/upload/2023-07-25/1690249417347.jpg', 'jpg', 0.01, 1, NULL, '2023-07-25 09:43:37', '2023-07-25 09:43:37');
INSERT INTO `file` (`id`, `name`, `title`, `url`, `type`, `size`, `status`, `userId`, `createAt`, `updateAt`) VALUES (357, '1690249422142.md', 'ddd.md', '/upload/2023-07-25/1690249422142.md', 'md', 0.00, 1, NULL, '2023-07-25 09:43:42', '2023-07-25 09:43:42');
COMMIT;

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `account` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '账号',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '管理员名',
  `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '密码',
  `scope` tinyint NOT NULL DEFAULT '1' COMMENT '等级',
  `proof` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
  `createAt` datetime NOT NULL,
  `updateAt` datetime NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=271 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;

-- ----------------------------
-- Records of user
-- ----------------------------
BEGIN;
INSERT INTO `user` (`id`, `account`, `name`, `password`, `scope`, `proof`, `createAt`, `updateAt`) VALUES (269, 'admin', '管理员', '14e1b600b1fd579f47433b88e8d85291', 9, '21232f297a57a5a743894a0e4a801fc3', '2022-09-19 10:45:00', '2022-09-19 10:45:03');
INSERT INTO `user` (`id`, `account`, `name`, `password`, `scope`, `proof`, `createAt`, `updateAt`) VALUES (270, 'test', '游客', '14e1b600b1fd579f47433b88e8d85291', 1, '098f6bcd4621d373cade4e832627b4f6', '2022-09-27 16:34:35', '2022-09-27 16:34:38');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
